package com.mxx.common.data.jpa;

import javax.persistence.criteria.*;

/**
 * @author itzgyw
 * @describe Jpa Specification条件构造工具
 */

public class SpecHelper extends AbstractSpecHelper<SpecHelper, String> {


    public SpecHelper(Root root, CriteriaBuilder criteriaBuilder, CriteriaQuery criteriaQuery) {
        super(root, criteriaBuilder, criteriaQuery);

    }

    @Override
    protected Path get(String key) {
        return root.get(key);
    }

    @Override
    public SpecHelper getTarget() {
        return this;
    }
}
